FROM jsbroks/coco-annotator:python-env

WORKDIR /workspace/

# Install python package dependices
COPY ./backend/ /workspace/
COPY ./.git /workspace/.git
RUN python set_path.py

RUN pip install bing-image-downloader -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install blind-watermark -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install hyperopt==0.2.5 -i https://pypi.tuna.tsinghua.edu.cn/simple


ENV FLASK_ENV=development
ENV DEBUG=true

EXPOSE 5000
CMD gunicorn -c webserver/gunicorn_config.py webserver:app --no-sendfile


